#if !defined(AFX_SETTINGTOWERLAMP_H__5E357162_FDD8_4647_8DDD_2395D9DCAA03__INCLUDED_)
#define AFX_SETTINGTOWERLAMP_H__5E357162_FDD8_4647_8DDD_2395D9DCAA03__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingTowerLamp.h : header file
//
#include "Util\MinButton.h"
#include "Util\MinLabel.h"
// Common Layer
class CDMControlCenter;
class CTowerLampData;
/////////////////////////////////////////////////////////////////////////////
// CSettingTowerLamp dialog

class CSettingTowerLamp : public CDialog
{
// Construction
private:
	CTowerLampData* m_lnkTowerLampData;
	BOOL StartInitFlag;

public:
	CSettingTowerLamp(CDMControlCenter* pDMCC,CWnd* pParent = NULL);   // standard constructor

	UINT m_TimerID;
	BOOL m_TimerInitFlag;
	

// Dialog Data
	//{{AFX_DATA(CSettingTowerLamp)
	enum { IDD = IDD_SETTING_TLAMP };
	CMinButton	m_bYel;
	CMinButton	m_bSave;
	CMinButton	m_bRunYel;
	CMinButton	m_bRunRed;
	CMinButton	m_bRunOkBz;
	CMinButton	m_bRunLampBlink;
	CMinButton	m_bRunGen;
	CMinButton	m_bRunErrorBz;
	CMinButton	m_bRun;
	CMinButton	m_bRed;
	CMinButton	m_bManualYel;
	CMinButton	m_bManualRed;
	CMinButton	m_bManualOkBz;
	CMinButton	m_bManualLampBlink;
	CMinButton	m_bManualGen;
	CMinButton	m_bManualErrorBz;
	CMinButton	m_bManual;
	CMinButton	m_bGen;
	CMinButton	m_bErrorYel;
	CMinButton	m_bErrorRed;
	CMinButton	m_bErrorOKBz;
	CMinButton	m_bErrorLampBlink;
	CMinButton	m_bErrorGen;
	CMinButton	m_bErrorERBz;
	CMinButton	m_bError;
	CMinButton	m_bCompl;
	CMinButton	m_bComplYel;
	CMinButton	m_bComplRed;
	CMinButton	m_bComplOKBz;
	CMinButton	m_bComplLampBlink;
	CMinButton	m_bComplGen;
	CMinButton	m_bComplErrorBz;
	CMinButton	m_bExit;
	CMinButton	m_bOkBz;
	CMinButton	m_bErrorBz;
	CMinButton	m_bBlink;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingTowerLamp)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void ButtonInitial();
	void ButtonUpdate();
	// Generated message map functions
	//{{AFX_MSG(CSettingTowerLamp)
	afx_msg void OnManualGen();
	afx_msg void OnManualYel();
	afx_msg void OnManualRed();
	afx_msg void OnManualErBz();
	afx_msg void OnManualOkBz();
	afx_msg void OnManualLpBlink();
	afx_msg void OnRunGne();
	afx_msg void OnRunYel();
	afx_msg void OnRunRed();
	afx_msg void OnRunErBz();
	afx_msg void OnRunOkBz();
	afx_msg void OnRunLpBlink();
	afx_msg void OnErrorGen();
	afx_msg void OnErrorYel();
	afx_msg void OnErrorRed();
	afx_msg void OnErrorErBz();
	afx_msg void OnErrorOkBz();
	afx_msg void OnErrorLpBlink();
	afx_msg void OnComplGen();
	afx_msg void OnComplYel();
	afx_msg void OnComplRed();
	afx_msg void OnComplErBz();
	afx_msg void OnComplOkBz();
	afx_msg void OnComplLpBlink();
	afx_msg void OnSave();
	afx_msg void OnCancel();
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTINGTOWERLAMP_H__5E357162_FDD8_4647_8DDD_2395D9DCAA03__INCLUDED_)
